package soccerBet.project.main;


import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;

import net.sf.jxls.exception.ParsePropertyException;
import net.sf.jxls.transformer.XLSTransformer;


import soccerBet.project.Parser.ScreenScraping;
import soccerBet.project.agenda.EveryDayTask;
import soccerBet.project.funds.Funds;
import soccerBet.project.mail.SendMailTLS;
import soccerBet.project.utils.Display;
import soccerBet.project.utils.Prop;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import net.sf.jxls.transformer.XLSTransformer;


public class FlowManager {
	
	private final static long ONCE_PER_DAY = 1000*60*60*24;

	public FlowManager(){

		new WebService();
		
		new Prop();
	
		startSoccerBet();

	}

	private void startSoccerBet() {
		
		Timer timer = new Timer();
		
		timer.scheduleAtFixedRate(new EveryDayTask(), 0,ONCE_PER_DAY);
	}



	
	
}
